package top.syfy.spb.upload.imageandwatermark.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 页面跳转控制应用层
 *
 * @author awg
 * @date 2020/10/23 星期五
 */
@Controller
@RequestMapping(value = "/page", method = {RequestMethod.GET})
public class PageController {

    /**
     * 跳转到图片上传页面(form表单上传)
     *
     * @return 图片上传页面的视图名(form表单上传)
     */
    @GetMapping(value = "/index")
    public String index() {
        return "index";
    }

    /**
     * 跳转到图片上传页面(ajax上传)
     *
     * @return 图片上传页面的视图名(ajax上传)
     */
    @GetMapping(value = "/indexAjax")
    public String indexAjax() {
        return "index_ajax";
    }
}
